/**
 *  后台用户接口
 */
import request from '@/utils/request'

export function getLevList(params) {
  return request({
    url: '/user/levshow',
    method: 'get',
    params
  })
}

export function levelAdd(data) {
  return request({
    url: '/user/crelev',
    method: 'post',
    data
  })
}

export function levelEdit(data) {
  return request({
    url: '/user/edtlev',
    method: 'post',
    data
  })
}

export function getUserList(params) {
  return request({
    url: '/user/usershow',
    method: 'get',
    params
  })
}

export function userAdd(data) {
  return request({
    url: '/user/creuser',
    method: 'post',
    data
  })
}

export function userEdit(data) {
  return request({
    url: '/user/edtuser',
    method: 'post',
    data
  })
}

export function userStatus(data) {
  return request({
    url: '/user/userstatus',
    method: 'post',
    data
  })
}

export function uploadData(data) {
  return request({
    url: '/user/impuser',
    method: 'post',
    data
  })
}

//充值
export function recharge(data) {
  return request({
    url: '/user/recharge',
    method: 'post',
    data
  })
}

//提现
export function withdraw(data) {
  return request({
    url: '/user/withdraw',
    method: 'post',
    data
  })
}

//修改登录密码
export function editLoginPwd(data) {
  return request({
    url: '/user/cagepass',
    method: 'post',
    data
  })
}

//修改支付密码
export function editPayPwd(data) {
  return request({
    url: '/user/cagepay',
    method: 'post',
    data
  })
}

//导出用户
export function excuser(data) {
  return request({
    url: '/user/excuser',
    method: 'post',
    data
  })
}

//查看用户存酒记录
export function stores(params) {
  return request({
    url: '/user/stores',
    method: 'get',
    params
  })
}

//取酒
export function stoget(data) {
  return request({
    url: '/user/stoget',
    method: 'post',
    data
  })
}
